/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/

FoamFile
{
    version         2.0;
    format          ascii;
    class           dictionary;
    location        system;
    object          windPyFoamDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

// Wind Py Foam specific parameters.

template "test_template";
procnr 20;
procnrSnappy 10;

caseTypes
{
    gridConvergence 0;
    gridConvergenceParams
    {
        gridRange (1 2 3 4 5);
        windDir 30;
    }
    windRose
    {
        blockMeshCellSize 60;
        /* weight [0, 1.0], direction [0, 360.0] */
        windDir (
            (0.5 0)
        );
    };
};

// simulation parameters
simParams
{
   	yM			20;
   	UM			5;
   	z0			0.0015;
   	caseType	SHM;
};

SHMParams
{
    rectanguleDomainSTL 0;

    cellSize
	{
		fLayerRatio 2;
		levelRef	1;
		layers		2;
		r			1.2;
		zp_z0		20; //ratio between middle of first cell from the ground to the roughness length - 13.5 is Martinez value for Askervein
	}
	domainSize
	{
		refinement_length 100;
        typical_height 15;
		fXup		200;  // upwind fetch
		fXdown		800; // downwind fetch
		fY		660; // dom_y = fX * a
		domZ	120; // = Href
        z_min   0.75;
	}
	pointInDomain
	{
		zz		111;
	}
	centerOfDomain
	{
		x0		0;
		y0		0;
	}
};

kEpsParams
{
	Cmu		0.03;	// castro 96
	k		0.4;
};

sampleParams
{
	hSample	(10 50);
    Nx 100;
};

// *********************************************************************** //

